

data=[
    {
        "city":"吕梁",
        "area":100,
        "rooms":2,
        "school":1,
        "style":1,
        "price":8000,
    },
{
        "city":"吕梁",
        "area":130,
        "rooms":2,
        "school":1,
        "style":1,
        "price":7800,
    },
{
        "city":"吕梁",
        "area":150,
        "rooms":2,
        "school":1,
        "style":1,
        "price":8200,
    },


{
        "city":"太原",
        "area":100,
        "rooms":2,
        "school":1,
        "style":1,
        "price":10000,
    },
{
        "city":"太原",
        "area":130,
        "rooms":2,
        "school":1,
        "style":1,
        "price":9800,
    },
{
        "city":"太原",
        "area":150,
        "rooms":2,
        "school":1,
        "style":1,
        "price":8500,
    },
]

# 各     3000   10    1000     1300     1500
#      城市     面积  房间数量  学区房     装修    各个元素的权重   a1 a2 a3 a4 a5
#       总价即总分  ：  p
#       各个元素*各个元素的权重之和即为分数
#       城市： x1 例： 县=1 市=2
#       面积： x2  按平方米计量
#       房间数量：  x3 个数
#       学区房 ：  bool   0/1
#       装修：  bool 0/1   是否精装修